import { postRequest } from '../utils/axios';
export * from './remoteConsultation.js';
export const uploadFileBridge = params => postRequest('/web/oss/ossPolicy', params);

/*** 个人中心模块 ***/
//医生
export const getDoctorInfo = params => postRequest('/web/userInfo/doctorInfo', params); // 获取医生信息
export const updateDoctorHeadImg = params => postRequest('/web/userInfo/updateDoctorHeadImg', params); // 更新医生头像
export const updateDoctorInfo = params => postRequest('/web/userInfo/updateDoctorInfo', params); // 更新医生信息
export const updateDoctorSign = params => postRequest('/web/userInfo/updateDoctorSign', params); // 更新医生签名图片
export const updatePassword = params => postRequest('/web/userInfo/updatePassword', params); // 修改账户密码-医生和患者公用
export const getChatRecord = params => postRequest('/web/mysubscriber/doctor-patient-chat-record-log', params); // 医患聊天记录
//个人
export const getUserInfo = params => postRequest('/web/userInfo/userInfo', params); // 获取个人患者信息
export const updateUserInfo = params => postRequest('/web/userInfo/updateUserInfo', params); // 个人患者更新信息
export const getPatientPrescriptionList = params => postRequest('/web/patientPrescription/getPatientPrescriptionList', params); // 我的处方列表
export const getInterrogationHistoryList = params => postRequest('/web/myInterrogation/getInterrogationHistoryList', params); // 个人问诊历史列表
export const updateUserHeadImg = params => postRequest('/web/userInfo/updateUserHeadImg', params); // 个人更新头像
export const getUserInterrogationHistoryinfo = params => postRequest('/web/myInterrogation/getInterrogationHistoryinfo', params); // 个人-我的问诊历史详情
export const getUserDrugInfo = params => postRequest('/web/myInterrogation/getDrugList', params); // 个人-我的问诊用药详情


/*** 医生值班安排 ***/
export const getDoctorSchedulingListPc = params => postRequest('/web/doctorScheduling/getDoctorSchedulingListPc', params); // 获取医生排班

/*** 医生网络问诊 ***/
export const getInquiryInspectionOpinionList = params => postRequest('/web/medicalRecord/getInquiryInspectionOpinionList', params); // 检验检查
export const getHealthGuidanceList = params => postRequest('/web/medicalRecord/getHealthGuidanceList', params); // 健康指导意见单
export const getHospitalizationList = params => postRequest('/web/medicalRecord/getHospitalizationList', params); // 住院建议书
export const revocationHospitalization = params => postRequest('/web/medicalRecord/revocationHospitalization', params); // 撤销住院建议书
export const getOpenPrescriptions = params => postRequest('/web/medicalRecord/getOpenPrescriptions', params); // 已开处方
export const getPharmacistFeedbackList = params => postRequest('/web/medicalRecord/getPharmacistFeedbackList', params); // 药师审方反馈
export const getUserRecords = params => postRequest('/web/medicalRecord/getUserRecords', params); // 用户病历
export const getNewsList = params => postRequest('/web/news/getNewsList', params); // 消息中心
export const getApplicationFormList = params => postRequest('/web/medicalRecord/getApplicationFormList', params); // 申请单
export const getMysubscriber = params => postRequest('/web/mysubscriber/getMysubscriber', params); // 我的用户
export const sendNewsMysubscriber = params => postRequest('/web/mysubscriber/sendNews', params); // 我的用户--发送信息
export const getDoctorOnlieConsultainfo = params => postRequest('/web/doctoronlineconsulta/getDoctorOnlieConsultainfo', params); // 查询医生详情
export const queryHistoryInterrogation = params => postRequest('/web/doctoronlineconsulta/queryHistoryInterrogation', params); // 问诊统计
export const getPrescriptionDrugDetail = params => postRequest('/web/medicalRecord/getPrescriptionDrugDetail', params); // 查看处方用药详情
export const getPrescriptionDetail = params => postRequest('/web/medicalRecord/getPrescriptionDetail', params); // 查看处方用药详情
export const editorPrescription = params => postRequest('/web/medicalRecord/editorPrescription', params); // 消息中心--获取处方信息
export const updatePrescription = params => postRequest('/web/medicalRecord/updatePrescription', params); // 消息中心--生成处方
export const getInquiryDoctorInfo = params => postRequest('/web/doctorInfo/getDoctorInfo', params); // 获取医生详情
export const getQRCode = params => postRequest('/web/doctoronlineconsulta/getQRCode', params); // 获取医生二维码

/*** 患者网络问诊 ***/
export const getPatientPrescriptionHistoryList = params => postRequest('/web/prescriptionhistory/getPrescriptionHistory', params); // 处方历史列表
export const getPatientApplicationList = params => postRequest('/web/prescriptionhistory/getApplicationFormList', params); // 申请单列表
export const getPatientHealthGuidanceList = params => postRequest('/web/prescriptionhistory/getHealthGuidanceList', params); // 健康指导意见单
export const getPatientHospitalizationList = params => postRequest('/web/prescriptionhistory/getHospitalizationList', params); // 住院建议书
export const getPatientInspectionList = params => postRequest('/web/prescriptionhistory/getInquiryInspectionOpinionList', params); // 检验检查意见单

/*** 登录 ***/
export const loginDoctorMobile = params => postRequest('/web/login/loginDoctorMobile', params); //医生短信登陆
export const loginStoreName = params => postRequest('/web/login/loginStoreName', params); //服务点账号密码登陆
export const loginUserMobile = params => postRequest('/web/login/loginUserMobile', params); //用户短信登陆
export const retrievePassword = params => postRequest('/web/login/retrievePassword', params); //用户找回密码
export const userRegister = params => postRequest('/web/login/userRegister', params); //用户注册
export const userLogin = params => postRequest('/web/login/login', params); //统一三种角色登陆接口
export const judgeUser = params => postRequest('/web/login/judgeUser', params); //判断用户类型
export const outLogin = params => postRequest('/web/outLogin/out', params); //登出
export const getUserAreement = params => postRequest('/web/utilInitData/getUserAreement', params); //服务协议
export const getPrivacyPolicy = params => postRequest('/web/utilInitData/getPrivacyPolicy', params); //隐私协议
export const getAgreementDetail = params => postRequest('/web/utilInitData/getAgreement', params); // 获取对应协议名称+内容

/*** 验证码 ***/
export const getPicCaptcha = params => postRequest('/web/captcha/captcha', params); //获取图形验证码
export const getPhoneCaptcha = params => postRequest('/web/captcha/phoneCaptcha', params); //获取短信验证码

/*** 用户指南 ***/
export const getQuestionsListPc = params => postRequest('/web/utilQuestions/getQuestionsListPc', params); //获取指南问答列表

/*** 首页 ***/
export const getBannerList = params => postRequest('/web/banner/getBannerList', params); //获取背景轮播图
export const getHomeDoctorList = params => postRequest('/web/doctorInfo/getHomeDoctorList', params); //获取医生列表
export const getDepartmentListPc = params => postRequest('/web/index/utilDepartment/getDepartmentListPc', params); //获取科室列表
export const getEnterprisesListPc = params => postRequest('/web/cooperativeEnterprises/getEnterprisesListPc', params); //获取合作伙伴列表
export const getOnlineDoctorList = params => postRequest('/web/doctorInfo/getOnlineDoctorList', params); //获取在线医生列表
export const getMiniLogo = params => postRequest('/web/miniLogo/getMiniLogo', params); //获取小程序二维码
export const getHomeLogo = params => postRequest('/web/doctorInfo/getHospitalLogo', params); //获取医院logo
export const getConfigureName = params => postRequest('/web/banner/getConfigureName', params); //获取医院名称

/*** 聊天室 start ***/
export const getEstablishPdf = params => postRequest('/web/pdf/getEstablishPdf', params); //获取pdf、img
export const receivePatients = params => postRequest('/web/userInfo/receivePatients', params); //获取医生是否接诊状态
export const getAllInfo = params => postRequest('/web/inquiryLog/getAllInfo', params); //获取患者信息
export const updateInquiryPatientInfo = params => postRequest('/web/inquiryPatientInfo/updateInquiryPatientInfo', params); //修改患者、医生信息
export const getDrugFrequencyList = params => postRequest('/web/prescription/getDrugFrequencyList', params); //获取开药使用频次接口
export const getDrugUsageList = params => postRequest('/web/prescription/getDrugUsageList', params); //获取药品用法列表
export const getOccupationList = params => postRequest('/web/inquiryLog/getOccupationList', params); //获取职业列表
export const getMeasureDataList = params => postRequest('/web/inquiryLog/getMeasureDataList', params); //获取测量数据
export const addInquiryLogHospitalization = params => postRequest('/web/inquiryLog/addInquiryLogHospitalization', params); //在线问诊-医生添加住院建议
export const deleteInquiryLogHospitalization = params => postRequest('/web/inquiryLog/deleteInquiryLogHospitalization', params); //在线问诊-医生撤销住院建议
export const getIcdList = params => postRequest('/web/inquiryLog/getIcdList', params); //诊断列表获取
export const updateDiagnosis = params => postRequest('/web/inquiryLog/updateDiagnosis', params); //诊断-保存
export const getInquiryLogByUserIdList = params => postRequest('/web/inquiryLog/getInquiryLogByUserIdList', params); //网络问诊-医生查看患者病历
export const getChatRecordList = params => postRequest('/web/dectorEndInquiry/getChatRecordList', params); //获取历史聊天记录
export const unSuccessfulInquiry = params => postRequest('/web/dectorEndInquiry/unSuccessfulInquiry', params); //未成功问诊
export const endInquiry = params => postRequest('/web/dectorEndInquiry/endInquiry', params); //结束问诊
export const frozenOrder = params => postRequest('/web/wxpay/frozenOrder', params); //冻结订单
export const getTheCalculationFormula = params => postRequest('/web/calculation/getTheCalculationFormula', params); //药品计算数量
/* 主诉、现病史、既往史 */
export const getTemplate = params => postRequest('/web/inquiryLog/getTemplate', params); //获取问诊模板(主诉、现病史、既往史)
export const newTemplate = params => postRequest('/web/inquiryLog/newTemplate', params); //问诊新增模板(主诉、现病史、既往史)
export const deleteTemplate = params => postRequest('/web/inquiryLog/deleteTemplate', params); //问诊删除模板(主诉、现病史、既往史)
export const updateInquiryLog = params => postRequest('/web/inquiryLog/updateInquiryLog', params); //主诉、现病史、既往史-保存
export const updateAllergyHistory = params => postRequest('/web/inquiryLog/updateAllergyHistory', params); //药物过敏史-保存
/* 健康指导 */
export const getHealthGuidanceModelList = params => postRequest('/web/inquiryLogHealthGuidance/getHealthGuidanceModelList', params); //健康指导-获取模板列表
export const addHealthGuidanceModel = params => postRequest('/web/inquiryLogHealthGuidance/addHealthGuidanceModel', params); //健康指导-新增个人模板
export const addInquiryLogHealthGuidance = params => postRequest('/web/inquiryLogHealthGuidance/addInquiryLogHealthGuidance', params); //健康指导-生成意见单
export const delHealthGuidanceModel = params => postRequest('/web/inquiryLogHealthGuidance/delHealthGuidanceModel', params); //健康指导-删除个人模板
export const deleteInquiryLogHealthGuidance = params => postRequest('/web/inquiryLogHealthGuidance/deleteInquiryLogHealthGuidance', params); //健康指导-作废意见单
export const getHealthGuidanceModelDetail = params => postRequest('/web/inquiryLogHealthGuidance/getHealthGuidanceModelDetail', params); //健康指导-查看模板
export const getInquiryLogHealthGuidanceList = params => postRequest('/web/inquiryLogHealthGuidance/getInquiryLogHealthGuidanceList', params); //获取问诊过程中已开健康指导意见单列表
export const viewInquiryLogHealthGuidance = params => postRequest('/web/inquiryLogHealthGuidance/viewInquiryLogHealthGuidance', params); //健康指导-查看意见单详情
/* 检验检查 */
export const getChecklistClassName = params => postRequest('/web/checklistClass/getChecklistClassName', params); //检验检查分类列表
export const clickChecklistClass = params => postRequest('/web/checklist/clickChecklistClass', params); //检验检查-点击查看当前分类下的检验检查以及者下一级分类列表
export const getInspectionOpinionDetail = params => postRequest('/web/inquiryInspectionOpinion/getInspectionOpinionDetail', params); //检验检查-编辑检验检查意见单
export const deleteInspectionOpinion = params => postRequest('/web/inquiryInspectionOpinion/deleteInspectionOpinion', params); //检验检查-删除检验检查意见单
export const addInspectionOpinion = params => postRequest('/web/inquiryInspectionOpinion/addInspectionOpinion', params); //检验检查-医生开检验检查意见-新增
export const updateInspectionOpinion = params => postRequest('/web/inquiryInspectionOpinion/updateInspectionOpinion', params); //检验检查-医生开检验检查意见-编辑
export const getChatImages = params => postRequest('/web/inquiryInspectionOpinion/getChatImages', params); //检验检查-患者上传的图片列表
export const getNewInspectionList = params => postRequest('/web/inquiryInspectionOpinion/getInspectionOpinionList', params); //检查意见-问诊中获取已开意见单


/* 问诊规范模 */
export const getDoctorNormalConsultationList = params => postRequest('/web/doctorNormalConsultation/getDoctorNormalConsultationList', params); //获取问诊术语列表
export const getDiagnosisSpeciFicationList = params => postRequest('/web/kindsOfSpecification/getDiagnosisSpeciFicationList', params); //规范-诊断规范（分页）
export const getDrugSpeciFicationList = params => postRequest('/web/kindsOfSpecification/getDrugSpeciFicationList', params); //规范-药品规范(分页)
export const getDrugSpeciFicationDetail = params => postRequest('/web/kindsOfSpecification/getDrugSpeciFicationDetail', params); //规范-药品规范-药品规范详情
export const viewDrugSpeciFication = params => postRequest('/web/kindsOfSpecification/viewDrugSpeciFication', params); //规范-药品规范-查看药品规范
/* 处方模块 */
export const getDrugInfo = params => postRequest('/web/prescription/getDrugInfo', params); //药品详情
export const addPrescription = params => postRequest('/web/prescription/addPrescription', params); //处方模块（医生）— 生成处方
export const addPersonalDrug = params => postRequest('/web/prescription/addPersonalDrug', params); //处方模块（医生端）保存个人用药 传药品Id参数
export const deletePersonalDrug = params => postRequest('/web/prescription/deletePersonalDrug', params); //处方模块（医生端）删除个人用药 传drugTemplateId参数
export const deletePrescriptionTemplate = params => postRequest('/web/prescription/deletePrescriptionTemplate', params); //处方模块（医生端）—删除处方模板
export const deletePrescription = params => postRequest('/web/prescription/deletePrescription', params); //处方模块（医生端）—删除处方
export const getDrugClass = params => postRequest('/web/prescription/getDrugClass', params); //处方模块（医生端）—获取药品类型下拉
export const getDrugList = params => postRequest('/web/prescription/getDrugList', params); //处方模块（医生端）—用药（公用、个人、中药、西药通用）
export const getOpenedPrescription = params => postRequest('/web/prescription/getOpenedPrescription', params); //处方模块（医生）— 已开处方
export const addPrescriptionTemplate = params => postRequest('/web/prescription/addPrescriptionTemplate', params); //处方模块（医生）— 另存模板
export const getPrescriptionTemplateList = params => postRequest('/web/prescription/getPrescriptionTemplateList', params); //处方模块（医生端）—查询处方模板列表
export const getOpenedPrescriptionInfo = params => postRequest('/web/prescription/getOpenedPrescriptionInfo', params); //处方模块（医生端）--历史处方--查看详情
export const treatmentPatientInfo = params => postRequest('/web/prescription/treatment', params); //处方模块（医生） — 接诊 id=inquiryPatientInfoId
export const noPrescriptionList = params => postRequest('/web/inquiryLog/noPrescriptionList', params); //未开方原因下拉列表
export const addNoPrescription = params => postRequest('/web/inquiryLog/addNoPrescription', params); //填写未开方原因
export const getStoreList = params => postRequest('/web/prescription/getStoreList', params); //查询药店列表

// 问诊中，获取新的申请单列表
export const getNewApplicatonList = params => postRequest('/web/inquiryLogECGTemplate/getApplicationFormList', params);

/*** 申请单-申请单模板一（templateValue=inquiry_checklist_common_template） ***/
export const addApplicationTemplateOne = params => postRequest('/web/inquiryLogCommonTemplate/addCommonApplication', params); // 新增
export const updateApplicationTemplateOne = params => postRequest('/web/inquiryLogCommonTemplate/updateCommonApplicationForm', params); // 修改
export const deleteApplicationTemplateOne = params => postRequest('/web/inquiryLogCommonTemplate/deleteCommonApplicationForm', params); // 删除
export const getApplicationTemplateOneDetail = params => postRequest('/web/inquiryLogCommonTemplate/getCommonApplicationFormDetail', params); // 详情

/*** 申请单-申请单模板二（inquiry_checklist_ECG_template(表单字段少)） ***/
export const addApplicationTemplateTwo = params => postRequest('/web/inquiryLogECGTemplate/addECGApplication', params); // 新增
export const updateApplicationTemplateTwo = params => postRequest('/web/inquiryLogECGTemplate/updateECGApplicationForm', params); // 修改
export const deleteApplicationTemplateTwo = params => postRequest('/web/inquiryLogECGTemplate/deleteECGApplicationForm', params); // 删除
export const getApplicationTemplateTwoDetail = params => postRequest('/web/inquiryLogECGTemplate/getECGApplicationFormDetail', params); // 详情
/*** 聊天室 end ***/



/* --- 珠海-医保相关接口 --- */
// 修改付费类型
export const updatePaymentMethodByZh = params => postRequest('/web/inquiryPatientInfo/updateInquiryPaidType', params);
// 获取医保药品列表
export const getDrugListByZh = params => postRequest('/web/autonomousPrescription/medicineList', params);
// 生成处方前，判断药品库存是否足够
export const checkDrugInventoryByZh = params => postRequest('/web/autonomousPrescription/chek', params);
// 查看药品详情
export const getDrugDetailByZh = params => postRequest('/web/autonomousPrescription/medicineGetById', params);
// 查看--病种下拉列表
export const getDiseaseOptionsByZh = params => postRequest('/web/utilDiseaseName/getDiseaseNameList', params);
// 修改--病种
export const updateYBDiseaseByZh = params => postRequest('/web/inquiryPatientInfo/updateDiseaseName', params);



/* --- 廉江-His医保相关接口 --- */
// 获取西药列表
export const getWestDrugListByLj = params => postRequest('/web/lianjiang/his/getHisDrugInfoList', params);
// 获取中药列表
export const getCnDrugListByLj = params => postRequest('/web/lianjiang/his/getTraditionalDrugInfo', params);
// 获取用法用量、频率、用量单位、中药用法103
export const getUsageOptionByLj = params => postRequest('/web/lianjiang/his/getDictInfo', params);
// 获取药品详情
export const getDrugDetailByLj = params => postRequest('/web/lianjiang/his/getDrugInfo', params);
// 生成处方前，判断药品库存是否足够
export const checkDrugInventoryByLj = params => postRequest('/web/lianjiang/his/checkPrice', params);
// 获取HIS病历列表
export const getCaseHistoryListByLj = params => postRequest('/web/lianjiang/his/getClinicHistoryList', params);
// 获取HIS病历详情
export const getCaseHistoryDetailByLj = params => postRequest('/web/lianjiang/his/getMedicalRecordDetail', params);
// 查询处方PDF
export const getPrescriptPdfByLj = params => postRequest('/web/lianjiang/his/getHISPdfOrImg', params);


/* ------------------ 自主开方 ------------------ */
// 获取上次未结束的问诊
export const getLastInquiryByAuto = params => postRequest('/web/autonomousPrescription/getDoctorIncompleteInfo', params)
// 通过患者姓名/手机号/身份证搜索相关数据
export const queryPatientData = params => postRequest('/web/autonomousPrescription/getSearchDoctorInquiryPatientInfoList', params);
// 添加修改就诊人
export const updatePatientInfoByAuto = params => postRequest('/web/autonomousPrescription/doctorAddOrupdatePatientInfo', params);
// 成功/未成功问诊提交
export const endInquiryByAuto = params => postRequest('/web/autonomousPrescription/autonomousPrescriptionEndInquiry', params);
// 查询处方历史
export const getHistoryListByAuto = params => postRequest('/web/autonomousPrescription/queryInquiryLogPrescriptionHistory', params);


/* ------------------ CA 认证 ------------------ */
// 判断医生是否认证CA
export const checkCaState = params => postRequest('/web/ca-esgin/checkCertification', params);


/* ------------------ v2.0.8 精神类药品管制 ------------------ */
// 判断药品是否被管制
export const checkDrugDisable = params => postRequest('/web/inquiryLog/isDrugDisable', params);
// 医嘱编辑
export const updateEntrustAdvice = params => postRequest('/web/inquiryLog/updateDetailsEntrust', params);
// 新-查看病历
export const getPatientInquiryLog = params => postRequest('/web/medicalRecord/getInquiryLogByUserIdList', params);
// 新-查看病历-个人资料
export const getPatientInquiryInfo = params => postRequest('/web/medicalRecord/getUserRecordsInfo', params);


/* ------------------ v2.2.3 声网视频录制开始及结束 ------------------ */
export const agoraVideoRecord = params => postRequest('/web/inquiryLog/videoStartOrEnd', params);


/* ------------------ v2.2.5 CA模式 ------------------ */
export const getCaMode = params => postRequest('/web/hospital/getHospitalCaMode', params);
export const updateUserCaCase = params => postRequest('/web/medicalRecord/updateInquiryLogHemr', params);



/* ------------------ his查询 ------------------ */
export const authLogin = params => postRequest('/web/renan_his/api/Certification/AuthLogin', params);
export const pub_GetPatienArchiveByIdCardNo = (params,extraData) => postRequest('/web/renan_his/api/PatientInfo/Pub_GetPatienArchiveByIdCardNo', params,extraData);

export const pub_QueryClinicPatientInfo = (params,extraData) => postRequest('/web/renan_his/api/OutpatientPayment/Pub_QueryClinicPatientInfo', params,extraData);
export const pub_QueryOutRecordInfo = (params,extraData) => postRequest('/web/renan_his/api/OutpatientPayment/Pub_QueryOutRecordInfo', params,extraData);
export const pub_QueryPrescriptionList_v2 = (params,extraData) => postRequest('/web/renan_his/api/OutpatientPayment/Pub_QueryPrescriptionList_v2', params,extraData);
export const pub_QueryPrescriptionDetail = (params,extraData) => postRequest('/web/renan_his/api/OutpatientPayment/Pub_QueryPrescriptionDetail', params,extraData);
export const pub_QueryInHospitalRecordList = (params,extraData) => postRequest('/web/renan_his/api/InpatientBusiness/Pub_QueryInHospitalRecordList', params,extraData);
export const pub_QueryInpatientInfo = (params,extraData) => postRequest('/web/renan_his/api/InpatientBusiness/Pub_QueryInpatientInfo', params,extraData);
export const pub_QueryInHospitalRecordDetail = (params,extraData) => postRequest('/web/renan_his/api/InpatientBusiness/Pub_QueryInHospitalRecordDetail', params,extraData);

